package com.mt.channel.feign;

import java.util.List;
import java.util.Map;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;

import com.mt.channel.entity.ChannelOrderEntity;
import com.mt.common.PagerInfo;
import com.mt.common.ServiceResult;

@FeignClient(name = "channelService")
public interface ChannelOrderFeign {

    @GetMapping("/channelOrder/findList")
    ServiceResult<List<ChannelOrderEntity>> findList(Map<String, Object> params, PagerInfo<?> pagerInfo);

    @GetMapping("/channelOrder/findInfo")
    ServiceResult<ChannelOrderEntity> findInfo(Map<String, Object> params);

    @PostMapping("/channelOrder/doInsert")
    ServiceResult<Integer> doInsert(ChannelOrderEntity channelOrderEntity);
}
